//
//  WPInfomationModel.m
//  wobingwoyi
//
//  Created by WGP on 16/9/23.
//  Copyright © 2016年 WGP. All rights reserved.
//

#import "WPInfomationModel.h"

@implementation WPInfomationModel

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_content forKey:@"content"];
    [aCoder encodeObject:_time forKey:@"time"];
    [aCoder encodeObject:_title forKey:@"title"];
    [aCoder encodeObject:_type forKey:@"type"];
}
- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if(self = [super init])
    {
        _content = [aDecoder decodeObjectForKey:@"content"];
        _time = [aDecoder decodeObjectForKey:@"time"];
        _title = [aDecoder decodeObjectForKey:@"title"];
        _type = [aDecoder decodeObjectForKey:@"type"];
        
    }
    return self;
}

@end
